class Drew {
    public void drew () {
        System.out.println("drew things");
    }
}
class triangle extends Drew {
    @Override
    public void drew() {
        System.out.println(" drew triangle");
    }
}
 class circle extends Drew {
     @Override
     public void drew() {
         System.out.println(" drew circle............");
     }
 }
class rectangle extends Drew {
    @Override
    public void drew() {
        System.out.println(" drew rectangle...........");
    }
}
class square extends Drew {
    @Override
    public void drew() {
        System.out.println(" drew square...........");
    }
}


public class duotai {
    public static void main(String[] args) {
    Drew[] drew1 = { new circle(),new rectangle(),new square(),new triangle()};
    for(Drew x: drew1) {
        x.drew();
    }
    
    }
}
